package com.zhledu.algorithm;

import java.io.*;
import java.util.Scanner;

public class YangHuiAnger {
    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        char[][] a = new char[n][m];
        //左上角第一个元素为A
        a[0][0] = 'A';
        //第一列初始化成ABCDEFG...（n行）
        for (int i = 1; i < n; i++) {
            a[i][0] = (char) (a[i - 1][0] + 1);
        }
        //第一列初始化成ABCDEFGH....(m列)
        for (int i = 1; i < m; i++) {
            a[0][i] = (char) (a[0][i - 1] + 1);
        }
        //其他每一个是它左上角的元素
        for (int i = 1; i < n; i++) {
            for (int j = 1; j < m; j++) {
                a[i][j] = a[i - 1][j - 1];
            }
        }
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                System.out.print(a[i][j]);
            }
            System.out.println();
        }
    }
}
